//当前类型
export type MapLevel = "country" | "province" | "city";

//地图接口
export interface RegionData {
  code: string;
  name: string;
  parentCode?: string;
}

//地图接口
export interface ChinaMapProps {
  option?: echarts.EChartsOption;
  data?: any[];
  width?: string;
  height?: string;
  onRegionChange?: (region: RegionData, level: MapLevel) => void;
}

//散点数据项接口
export interface ScatterDataItem {
  name: string;
  value: [number, number, number]; // [经度, 纬度, 值]
  extra: {}; // 扩展属性示例
}
